<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	
	<style type="text/css">
	*{
		margin:0px;
		padding:0px;
	}
	.top{
		width:100%; 
		height:35px; 
		line-height:35px; 
		font-size:12px;	
	}
	.top ul li{
		list-style:none;
		float:right;
		width:60px;
	}
	a{
		color:#06F;
		text-decoration:none;
	}
	a:hover{
		text-decoration:underline;
	}
	table tr{
		height: 38px;
	}
	</style>
</head>

<body onload="addColor()">
	<div style="height:35px;;width:100%;border-bottom:1px solid #CCC; z-index:-1; position:absolute; background:#EFEFEF;"></div>
	<div style="width:1200px; margin:auto;">
		<!-- 顶部索引 -->
        <div class="top">
        	<div style="width:50%; float:left;">你好！欢迎进入中国报险网。</div>
            <div style="width:50%; float:right; text-align:right;">
				<jsp:include page="case_top.jsp"></jsp:include>
            </div>
        </div>
        <!-- 主体内容 -->
        <div style="width:100%; height:560px;  font-family: '微软雅黑' ">
            <div style="width: 1000px; height: 450px; border: 0px solid green; border-radius: 10px; margin:38px 120px;">       
				<div style="width: 1000px; height: 60px; background: #0C9; border-top-left-radius: 10px; border-top-right-radius: 10px; text-align: center; line-height: 60px; color: #FFF;">我的案件</div>
				<div style="border: 1px solid #CCC;">
					<!-- 案件列表 -->
					<table border="0px" align="center" width="100%" cellspacing="0px">
						<tr height="50px" align="center">
							<td width="10%">案件编号</td>
							<td width="20%">接案人</td>
							<td width="20%">案件类型</td>
							<td width="20%">案件状态</td>
							<td width="30%">操作</td>
						</tr>
						<s:iterator value="#request.cList" var="c" status="st">						
							<tr align="center">
								<td><s:property value="#c.cid"/></td>
								<td><s:property value="#c.manager.smname"/></td>
								<td><s:property value="#c.casetype.ctname"/></td>
								<td><s:property value="#c.cstauts"/></td>
								<td>														
									<s:if test="#c.cstauts=='待审核'">
										<a href="${pageContext.request.contextPath }/Page_updatepage.action?cid=<s:property value='#c.cid'/>&op=1">修改</a>&nbsp;&nbsp;
									</s:if>
									<s:else>
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									</s:else>
									<s:if test="#c.cstauts=='待审核'">
										<a href="${pageContext.request.contextPath }/cases/Case_deletecase.action?cid=<s:property value='#c.cid'/>&op=1" onclick="return confirm('是否确认删除？');">删除</a>&nbsp;&nbsp;
									</s:if>
									<s:else>
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									</s:else>
									<a href="${pageContext.request.contextPath }/cases/Case_modify.action?cid=<s:property value='#c.cid'/>&op=1">详情</a>							
								</td>
							</tr>
						</s:iterator>
						<tr height="50px" align="center">
							<td colspan="5">
								<a href="#">首页</a>	
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;				
								<a href="#">上一页</a>
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<a href="#">下一页</a>
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<a href="#">尾页</a>																			
							</td>
						</tr>
					</table>
				</div>
            </div>
        </div>
        <!-- 版权 -->
        <div style="width:100%; height:30px; text-align:center; line-height:30px; float:left; font-size:14px;">Copyright© 中国报险网 2007-2015，All Rights Reserved</div>
    </div>
    
    <script type="text/javascript">
		//添加颜色
		function addColor(){
			var trTag = document.getElementsByTagName("tr");
			for(var i=0; i<trTag.length; i++){
				if(i%2 == 0){
					trTag[i].style.backgroundColor = "#F6F6F6";
				}
				if(i%2 != 0){
					trTag[i].style.backgroundColor = "#EAEAEA";
				}
			}
		}
		
	</script>
    
</body>
</html>
